import java.util.ArrayList;

public class ClassManager {
    private ArrayList<Student> students = new ArrayList<Student>();
    private StudentOperator studentOperator = new StudentOperatoreImpl2();
    public ClassManager(){
        students.add(new Student("tian","男",34));
        students.add(new Student("tian","男",67));
        students.add(new Student("tian","男",94));
        students.add(new Student("tian","男",78));
    }

    public void printInfo(){
        studentOperator.printAllInfo(students);
    }
    public void printScore(){
        studentOperator.printAverageScore(students);
    }
}
